sinclude ../../../config.make
#global 包含平台相关的配置，比如 build/config/Linux
include $(POCO_BASE)/build/rules/global
POCO_HOST_OSNAME = $(shell uname)
POCO_HOST_OSARCH ?= $(subst /,-,$(shell uname -m | tr ' ' _))

incdir=-I$(POCO_BASE)/Foundation/include -I$(POCO_BASE)/Net/include
pocolib=-lPocoNetd -lPocoFoundationd

server=server
client=client
target=all
all:$(server) $(client)
libdir=$(POCO_BASE)/lib/$(POCO_HOST_OSNAME)/$(POCO_HOST_OSARCH)

#SOURCES	= $(wildcard *.cpp)
#OBJS	= $(SOURCES:.cpp=.o)

$(server): 
	g++ -g server.cpp -o $@ $(pocolib) $(incdir) -L$(libdir) -std=c++11 -Wl,-rpath=$(libdir) 

$(client):
	g++ -g client.cpp -o $@ $(pocolib) $(incdir) -L$(libdir) -std=c++11 -Wl,-rpath=$(libdir) 

clean:
	-rm $(server) $(client)
